<%= form_for @identity, url: password_url(id: @identity.password_reset_token), method: :put do |f| %>
  <fieldset>
    <legend>Password Reset</legend>

    <% if alert.present? %>
    <div class="alert alert-block alert-error">
      <h4><i class="icon-warning-sign"></i> Error</h4>
      <%= alert %>
    </div>
    <% end %>

    <div class="control-group">
      <%= f.label :password, "Password", class: "control-label" %>

      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-envelope"></i></span>
          <%= f.password_field :password %>
        </div>
      </div>
    </div>

    <div class="control-group">
      <%= f.label :password_confirmation, "Password Confirmation", class: "control-label" %>

      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-envelope"></i></span>
          <%= f.password_field :password_confirmation %>
        </div>
      </div>
    </div>

    <div class="control-group">
      <div class="controls">
        <%= button_tag type: "submit", class: "btn btn-large btn-primary" do %>
          <i class="icon-ok icon-white"></i> Submit
        <% end %>
     </div>
    </div>
  </fieldset>
<% end %>
